﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 通讯录
{
    public partial class Form5 : Form
    {
        int flag;

        public Form5()
        {
            InitializeComponent();
            flag = -1;
        }

        private void submitButton_Click(object sender, EventArgs e)
        {
            if(radioButton1.Checked)
            {
                flag = 0;
            }
            else
            {
                flag = 1;
            }

            this.DialogResult = DialogResult.OK;
        }

        public int getFlag
        {
            get
            {
                return flag;
            }
        }
    }
}
